package com.youlai.boot.form.model.query;

import com.youlai.boot.common.base.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 动态单定义分页查询对象
 *
 * @author rabit
 * @since 2025-10-27 16:47
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description ="动态单定义查询对象")
@Data
public class FormDefinitionQuery extends BasePageQuery {

    /**
     * 表单名称
     */
    @Schema(description ="表单名称(模糊查询)")
    private String formName;
    /**
     * 表单类型：custom(普通)/workflow(工作流)/survey(问卷)
     */
    @Schema(description ="表单类型：custom(普通)/workflow(工作流)/survey(问卷)")
    private String formType;

    @Schema(description ="是否查询历史版本 0否 1是，",defaultValue = "0")
    private Integer history = 0;

    @Schema(description ="表单编码(查询历史数据时必传)")
    private String formCode;

}
